<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			div {
				width: 100px;
				height: 100px;
				border: 1px solid red;
			}
		</style>
	</head>
	<body>
		<div>字体颜色改变</div>
	</body>
	<script type="text/javascript">
		var div = document.getElementsByTagName("div")[0];
		function fu1() {
			div.style.color = "red";
		}
		function fu2() {
			div.style.color = "green";
		}
		function fu3() {
			div.style.color = "yellow";
		}
		var str = new Array(fu1,fu2,fu3);
//		function color()
//		(function() {
			(str[2])();
//		})();
		
	</script>
</html>
